package com.kingyun.gpsinspection.purificationservice.facade.service.som;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.File;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.OrganizationFile;

import java.util.List;
import java.util.Map;

/**
 * 资料查询service
 * Created by yangcs on 2017/4/1.
 */
public interface OrgFileService {

    /**
     * 获取列表数据
     * @param organizationFile
     * @return
     */
    JSONObject list(OrganizationFile organizationFile);

    /**
     * 新增
     * @param organizationFile
     * @return
     */
    int insertOrgFile(OrganizationFile organizationFile, String uploadFiles, String deletedFiles);

    /**
     * 修改
     * @param organizationFile
     * @return
     */
    int updateOrgFile(OrganizationFile organizationFile, String uploadFiles, String deletedFiles);

    /**
     * 删除
     * @param strs
     * @return
     */
    Map<String,Object> deleteOrgFile(List<String> strs);

    /**
     * 查询
     * @param organizationFileId
     * @return
     */
    OrganizationFile queryById(String organizationFileId);

    /**
     *  查询图片
     * @param limit
     * @param offset
     * @return
     */
    List<File> queryOrgFiles(String orgId, int limit, int offset, int orgFileType);

}
